<?php
/**
 * 读取数据
 * @author wangtao
 * @version 2012.01.24
 */

/**
 * 根据PID得到一个文章，么么哒
 * @param int $pid
 */
function getOnePost($pid) {
	$table = getPostTable($pid);
	$query = 'SELECT * FROM `' . $table . '` WHERE `Pid` =' . $pid . ' LIMIT 0 , 1';
	$db = mysqlDB::con();
	$post = $db->getRow($query);
	return $post;
}


